using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Collections.Specialized;

namespace CMSWeb.Core.Web
{
	public class CMSSiteMapProvider : SiteMapProvider
	{
		public override SiteMapNode FindSiteMapNode(string rawUrl)
		{
			Uri uri = new Uri(rawUrl);

			NameValueCollection querystring = HttpUtility.ParseQueryString(uri.Query);

			if ( !string.IsNullOrEmpty(querystring["page"]) )
			{
				string page = querystring["page"];

				SiteMapNode node = null;	// new SiteMapNode();



				return node;
			}

			return null;
		}

		public override SiteMapNodeCollection GetChildNodes(SiteMapNode node)
		{
			return null;
		}

		public override SiteMapNode GetParentNode(SiteMapNode node)
		{
			throw new Exception("The method or operation is not implemented.");
		}

		protected override SiteMapNode GetRootNodeCore()
		{
			throw new Exception("The method or operation is not implemented.");
		}
	}
}
